home *** CD-ROM | disk | FTP | other *** search
/ MacGames Sampler / PHT MacGames Bundle.iso / MacSource Folder / Samples from the CD / Editors / emacs / Emacs-1.14b1-sources / sources / misc-headers / pwd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-20  |  576 b   |  26 lines  |  [TEXT/EMAC]

  1. /*
  2.  * This file is part of a Macintosh port of GNU Emacs.
  3.  * Copyright (C) 1993, 1994 Marc Parmet.  All rights reserved.
  4.  *
  5.  * GNU Emacs is distributed in the hope that it will be useful,
  6.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  7.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  8.  * GNU General Public License for more details.
  9.  */
  10.  
  11. #ifndef __PWD__
  12. #define __PWD__
  13.  
  14. #include "sys/types.h"
  15.  
  16. struct passwd {
  17.     char    *pw_name;
  18.     uid_t    pw_uid;
  19.     char    *pw_dir;
  20. };
  21.  
  22. struct passwd *getpwuid(uid_t uid);
  23. struct passwd *getpwnam(char *name);
  24.  
  25. #endif
  26.